import request from '@/utils/request'

// 查询接口组列表
export function listInterfaceGroup(query) {
  return request({
    url: '/system/interfaceGroup/list',
    method: 'get',
    params: query
  })
}

// 查询接口组详细
export function getInterfaceGroup(groupId) {
  return request({
    url: '/system/interfaceGroup/' + groupId,
    method: 'get'
  })
}

// 新增接口组
export function addInterfaceGroup(data) {
  return request({
    url: '/system/interfaceGroup',
    method: 'post',
    data: data
  })
}

// 修改接口组
export function updateInterfaceGroup(data) {
  return request({
    url: '/system/interfaceGroup',
    method: 'put',
    data: data
  })
}

// 删除接口组
export function delInterfaceGroup(groupId) {
  return request({
    url: '/system/interfaceGroup/' + groupId,
    method: 'delete'
  })
}
